package com.wxw.gulidemo.client;/**
 * @author by xxz
 * @date 2022/6/16
 */

import com.wxw.gulidemo.vo.UcenterMemberVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Description

 * @author by xxz

 * @date 2022/6/16

 * @throws
 */
@Component
@FeignClient(value = "service-ucenter",fallback = UcenterClientImpl.class)//指定调用哪个微服务和哪个兜底方法类
public interface UcenterClient {

    @GetMapping("/serviceUcenter/ucenter-member/getMemberInfoById/{memberId}")
    UcenterMemberVo getMemberInfoById(@PathVariable("memberId") String memberId);

}
